using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.DirectX.Direct3D;
using System.Drawing;

namespace Boids2D
{
    class Triangle
    {
        //a triangle is 3 custom vertexes
        //a custom vertex is a location and a color
        CustomVertex.TransformedColored[] vertices = new CustomVertex.TransformedColored[3];

        public CustomVertex.TransformedColored[] Vertices
        {
            get { return vertices; }
            set { vertices = value; }
        }

        public CustomVertex.TransformedColored V1
        {
            get { return vertices[0]; }
            set { vertices[0] = value; }

        }
        public CustomVertex.TransformedColored V2
        {
            get { return vertices[1]; }
            set { vertices[1] = value; }

        }
        public CustomVertex.TransformedColored V3
        {
            get { return vertices[2]; }
            set { vertices[2] = value; }

        }

        public Triangle()
        {
        }

        public Triangle(CustomVertex.TransformedColored v1, CustomVertex.TransformedColored v2, CustomVertex.TransformedColored v3)
        {
            vertices[0]= v1;
            vertices[1] = v2;
            vertices[2] = v3;
        }

    }
}
